package com.itec.learn.java.design.observer.event;

/**
 * @author chenyiqun
 */
public class Main {

    public static void main(String[] args) {
        StateHolder stateHolder =  new StateHolder();
        stateHolder.addStateListener(new SysStateListener());
        stateHolder.setState(1);
        stateHolder.setState(2);
    }
}
